package com.inspsys.inspection.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.inspsys.inspection.mapper.InspectionVideoMapper;
import com.inspsys.inspection.domain.InspectionVideo;
import com.inspsys.inspection.service.IInspectionVideoService;

/**
 * 巡检视频Service业务层处理
 *
 * @author inspsys
 * @date 2025-01-08
 */
@Service
public class InspectionVideoServiceImpl implements IInspectionVideoService
{
    @Autowired
    private InspectionVideoMapper inspectionVideoMapper;

    /**
     * 查询巡检视频
     *
     * @param id 巡检视频主键
     * @return 巡检视频
     */
    @Override
    public InspectionVideo selectInspectionVideoById(Long id)
    {
        return inspectionVideoMapper.selectInspectionVideoById(id);
    }

    /**
     * 查询巡检视频列表
     *
     * @param inspectionVideo 巡检视频
     * @return 巡检视频
     */
    @Override
    public List<InspectionVideo> selectInspectionVideoList(InspectionVideo inspectionVideo)
    {
        return inspectionVideoMapper.selectInspectionVideoList(inspectionVideo);
    }

    /**
     * 新增巡检视频
     *
     * @param inspectionVideo 巡检视频
     * @return 结果
     */
    @Override
    public int insertInspectionVideo(InspectionVideo inspectionVideo)
    {
        return inspectionVideoMapper.insertInspectionVideo(inspectionVideo);
    }

    /**
     * 修改巡检视频
     *
     * @param inspectionVideo 巡检视频
     * @return 结果
     */
    @Override
    public int updateInspectionVideo(InspectionVideo inspectionVideo)
    {
        return inspectionVideoMapper.updateInspectionVideo(inspectionVideo);
    }

    /**
     * 批量删除巡检视频
     *
     * @param ids 需要删除的巡检视频主键
     * @return 结果
     */
    @Override
    public int deleteInspectionVideoByIds(Long[] ids)
    {
        return inspectionVideoMapper.deleteInspectionVideoByIds(ids);
    }

    /**
     * 删除巡检视频信息
     *
     * @param id 巡检视频主键
     * @return 结果
     */
    @Override
    public int deleteInspectionVideoById(Long id)
    {
        return inspectionVideoMapper.deleteInspectionVideoById(id);
    }
}
